<?php
class LoginView {
	
	private $userKey = 'username';
	private $passKey = 'password';
	
	public function DoLoginBox() {

		return "
		 <form action='index.php' method='GET'>
			Käyttäjätunnus: <input type='text' name='".$this->userKey."' /><br />
			salasana: <input type='password' name='".$this->passKey."' /> <br/>
			<p><input type='submit' value='Logini' /></p>
			</form> ";
	}
	
	public function DoLogoutBox() {
		return "<form action='index.php' method='get'>
		<p><input type='submit' value='Loguti' /></p>
		 </form>";	}
	
		public function GetUserName() {
			if(isset($_GET[$this->userKey]) == true){
				return $_GET[$this->userKey];
			}else{
				return NULL;
			}
		}
		
		public function GetPassword() {
			if(isset($_GET[$this->passkey]))
			
		return "";	}
		
		public function TriedToLogIn() {
		return "";	}

}
?>

